<!doctype html>
<html>
  <head>
    <title>aria-current value changes</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
    <link rel="stylesheet" href="/wai-aria/scripts/manual.css">
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
    <script src="/wai-aria/scripts/ATTAcomm.js"></script>
    <script>
    setup({explicit_timeout: true, explicit_done: true });

    var theTest = new ATTAcomm(
    {
   "steps" : [
      {
         "attribute" : "aria-current",
         "element" : "test",
         "title" : "step 1",
         "type" : "attribute",
         "value" : "true"
      },
      {
         "element" : "test",
         "test" : {
            "ATK" : [
               [
                  "event",
                  "type",
                  "is",
                  "object:state-changed:active"
               ],
               [
                  "event",
                  "detail1",
                  "is",
                  "1"
               ]
            ],
            "IAccessible2" : [
               [
                  "event",
                  "type",
                  "is",
                  "IA2_EVENT_OBJECT_ATTRIBUTE_CHANGED"
               ]
            ],
            "UIA" : [
               [
                  "event",
                  "type",
                  "is",
                  "PropertyChangedEvent"
               ]
            ]
         },
         "title" : "step 2",
         "type" : "test"
      },
      {
         "attribute" : "aria-current",
         "element" : "test",
         "title" : "step 3",
         "type" : "attribute",
         "value" : "false"
      },
      {
         "element" : "test",
         "test" : {
            "ATK" : [
               [
                  "event",
                  "type",
                  "is",
                  "object:state-changed:active"
               ],
               [
                  "event",
                  "detail1",
                  "is",
                  "0"
               ]
            ],
            "IAccessible2" : [
               [
                  "event",
                  "type",
                  "is",
                  "IA2_EVENT_OBJECT_ATTRIBUTE_CHANGED"
               ]
            ],
            "UIA" : [
               [
                  "event",
                  "type",
                  "is",
                  "PropertyChangedEvent"
               ]
            ]
         },
         "title" : "step 4",
         "type" : "test"
      }
   ],
   "title" : "aria-current value changes"
}

    ) ;
    </script>
  </head>
  <body>
  <p>This test examines the ARIA properties for aria-current value changes.</p>
    <div role="list">
    <div id="test" role="listitem">1</li>
    <div role="listitem">2</li>
  </div>

  <div id="manualMode"></div>
  <div id="log"></div>
  <div id="ATTAmessages"></div>
  </body>
</html>
